/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年9月19日 下午8:00:06
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniu.dao.StudentMapper;
import com.woniu.entity.Student;

/**
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/student")
public class UserController {
	@Autowired
	private StudentMapper sm;
	@RequestMapping("/selectAll")
	@ResponseBody
	public List<Student> selectAll(String depart,String sex){				
		List<Student> list = sm.selectAll(depart,sex);
		return list;
	}
	@RequestMapping("/del")
	@ResponseBody
	public String delStudent(Integer id) {
		sm.deleteByPrimaryKey(id);
		return "success";
	}
}
